{% extends 'base.html' %}

{% block contents %}
<p>Record[{{ action }}]</p>

{% ifequal action 'get' %}
<p>account:instance.account</p>
<p>action:instance.action</p>
<p>value:instance.value</p>
<p>recordDate:instance.recordDate</p>
<p>reason:instance.reason</p>
<p>category:instance.category</p>
<p>note:instance.note</p>
<p>createdDatetime:instance.createdDatetime</p>
{% endifequal %}

{% ifnotequal action 'get' %}
<form action="/record/{{ action }}/{{ object_id }}" method="POST">
{{ cform.as_p }}
<input type="submit" value="Submit" />
</form>
{% endifnotequal %}

{% endblock %}
